<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>流动摊位管理</title>
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
    <link th:href="@{/assets/css/amazeui.css}" rel="stylesheet" type="text/css">
    <link th:href="@{/assets/css/core.css}" rel="stylesheet" type="text/css">
    <link th:href="@{/assets/css/menu.css}" rel="stylesheet" type="text/css">
    <link th:href="@{/assets/css/index.css}" rel="stylesheet" type="text/css">
    <link th:href="@{/assets/css/admin.css}" rel="stylesheet" type="text/css">
    <link th:href="@{/assets/css/page/typography.css}" rel="stylesheet" type="text/css">
    <link th:href="@{/assets/css/page/form.css}" rel="stylesheet" type="text/css">
    <link th:href="@{/assets/css/component.css}" rel="stylesheet" type="text/css">
    <link th:href="@{/assets/css/picture.css}"rel="stylesheet"type="text/css">
</head>
<body>
<!-- Begin page -->
<header class="am-topbar am-topbar-fixed-top">
    <div class="am-topbar-left am-hide-sm-only">
        <a href="../index.html" class="logo"><span>管理员<span>端</span></span><i class="zmdi zmdi-layers"></i></a>
    </div>

    <div class="contain">
        <ul class="am-nav am-navbar-nav am-navbar-left">

            <li><h4 class="page-title">流动摊位管理</h4></li>
        </ul>

    </div>
</header>
<!-- end page -->


<div class="admin">
    <div class="admin-sidebar am-offcanvas  am-padding-0" id="admin-offcanvas">
        <div class="am-offcanvas-bar admin-offcanvas-bar">
            <!-- User -->
            <div class="user-box am-hide-sm-only">
                <div class="user-img">
                    <img src="../assets/img/avatar-1.jpg" alt="user-img" title="Mat Helme"
                         class="img-circle img-thumbnail img-responsive">
                    <div class="user-status offline"><i class="am-icon-dot-circle-o" aria-hidden="true"></i></div>
                </div>
                <h5><a href="#">管理员</a></h5>
            </div>
            <!-- End User -->


            <ul class="am-list admin-sidebar-list">
                <li><a th:href="@{/manager/FirstPage}" class="am-cf"><span class="am-icon-home"></span> 首页 </a></li>
                <li class="admin-parent">
                    <a class="am-cf" data-am-collapse="{target: '#collapse-nav1'}"><span class="am-icon-table"></span>
                        人员管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
                    <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav1">
                        <!--<li><a th:href="@{/manager/table_basic}" class="am-cf"> 基本表格</span></a></li>-->
                        <li><a th:href="@{/manager/c_person}" class="am-cf">居民管理</a></li>
                        <li><a th:href="@{/manager/c_worker}" class="am-cf">执法人员管理</a></li>
                    </ul>
                </li>
                <li class="admin-parent">
                    <a class="am-cf" data-am-collapse="{target: '#collapse-nav2'}"><span class="am-icon-table"></span>
                        事件管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
                    <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav2">
                        <!--<li><a th:href="@{/manager/table_basic}" class="am-cf"> 基本表格</span></a></li>-->
                        <li><a th:href="@{/manager/c_place}" class="am-cf">流动摊位管理</a></li>
                        <li><a th:href="@{/manager/c_announce}" class="am-cf">公示管理</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>


    <!-- Start right Content here -->
    <div class="content-page">
        <!-- Start content -->
        <div class="content">
            <div class="card-box">

                <div class="am-g">
                    <div class="am-u-sm-12">
                        <form action="/manager/addStalls" class="am-from" method="post" data-am-validator>
                            <fieldset>
                                <legend>添加流动摊位</legend>

                                <div class="am-form-group">
                                    <label >位置</label>
                                    <input type="text" id="doc-vld-email-2"name="slocation" placeholder="输入位置" required/>
                                </div>

                                <div class="upload">
                                    <p>上传截图</p><div><input type="file" id="simg" name="simg"style="opacity: 100%"></div>
                                </div>
                                <button class="am-btn am-btn-secondary" type="submit">提交</button>
                            </fieldset>
                        </form>
                        <form class="am-form" action="/manager/del">
                            <table class="am-table am-table-striped am-table-hover table-main">
                                <thead>
                                <tr>
                                    </th>
                                    <th class="table-id">ID</th>
                                    <th class="table-title">位置</th>
                                    <th class="table-type">图片</th>
                                    <th class="table-type">操作</th>
                                </tr>
                                </thead>


                                <tbody th:each="select : ${select}">


                                <tr>
                                    <td><span th:text="${select.sid}"></span></td>
                                    <td><span th:text="${select.slocation}"></span></td>
                                    <!--<td> <img th:src="@{/assets/img/avatar-1.jpg}"></td>-->
                                    <td><img  height="200" width="400" th:src="${select.simg} "></td>


                                    <td>


                                        <div class="am-btn-toolbar">
                                            <a th:href="@{/manager/del(sid=${select.sid})}">
                                                <i>删除</i>
                                            </a>
                                        </div>


                                    </td>

                                </tr>

                                </tbody>
                            </table>

                            <!--<div class="am-form-group">-->
                            <!--<label >编号</label>-->
                            <!--<input type="text" id="doc-vld-name-5"  name="sid" placeholder="编号" required/>-->
                            <!--<button class="am-btn am-btn-default am-btn-xs am-text-secondary" type="submit"><span class="am-icon-pencil-square-o"></span> 删除</button>-->
                            <!--</div>-->
                        </form>
                    </div>

                </div>
                <!-- Row end -->

            </div>


        </div>


    </div>
</div>
<!-- end right Content here -->
<!--</div>-->
</div>
</div>

<!-- navbar -->
<a href="admin-offcanvas" class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu"
   data-am-offcanvas="{target: '#admin-offcanvas'}"><!--<i class="fa fa-bars" aria-hidden="true"></i>--></a>

<script th:src="@{/assets/js/jquery-2.1.0.js}" type="text/javascript"></script>
<script th:src="@{/assets/js/amazeui.min.js}" type="text/javascript"></script>
<script th:src="@{/assets/js/app.js}" type="text/javascript"></script>
<script th:src="@{/assets/js/blockUI.js}" type="text/javascript"></script>
<script th:src="@{/assets/js/charts/echarts.min.js}" type="text/javascript"></script>
<script th:src="@{/assets/js/charts/indexChart.js}" type="text/javascript"></script>


</body>

</html>
